<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@page import="com.ecable.bean.PackagesTO;"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path;
	String s;
%>
<%
	if (session.getAttribute("user") == null) {

		RequestDispatcher rd = request
				.getRequestDispatcher("/LoginForm.jsp");
		rd.forward(request, response);
%>
<%
	}
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>

		<script language="JavaScript"
			src="<%=request.getContextPath()
							+ "/js/gen_validatorv31.js"%>"
			type="text/javascript"></script>




	</head>

	<body>
		&nbsp;


		<jsp:include page="Header.jsp"></jsp:include>
		<br />
		<%
			Vector c = (Vector) request.getAttribute("updatepackinfo");

			Iterator it = c.listIterator();
			int count = 0;
			if (it.hasNext()) {
				System.out.println("loop repeated" + count);
				PackagesTO pack = (PackagesTO) it.next();
		%>



		<center>
			<h1>
				Package Details for Update
			</h1>
		</center>

		<form action="<%=request.getContextPath()
						+ "/UpdatePackageAction"%>"
			method="post">
			<table align="center">

				<tr>
					<td align='right'>
						<b>PackageId :</b>

					</td >
					<td >
						<input type=text name='Packid' value="<%=pack.getPackid()%>"
							readonly='readonly' />
					</td>
				</tr>

				<tr>
					<td align='right'>
						<b>PackageName :</b>

					</td>
					<td>
						<input type=text name='Packname' value="<%=pack.getPackname()%>" />
					</td>
				</tr>


				<tr>
					<td align='right'>
						<b>Package Description :</b>
					</td>
					<td>
						<input type=text name='Packdiscription'
							value='<%=pack.getPackdiscription()%>'>
					</td>
				</tr>


				<tr>
					<td align='right'>
						<b>PackageAmount :</b>

						<br>
					</td>
					<td>
						<input type=text name='Packamount' value='<%=pack.getPackamount()%>' />
					</td>
				</tr>
				<tr>
					<td align='right'>
						<b>PackageStatus :</b>

						<br>
					</td>
					<td >
						<select name='Packstatus'>

							<option value="ACTIVE">
								<font size="3" face="Verdana">ACTIVE</font>
							</option>
							<option value="DEACTIVE">
								<font size="3" face="Verdana">DEACTIVE</font>
							</option>

						</select>
					</td>
				</tr>
			
				<tr>
					<td colspan='2' align=center>
						<input type='submit' value='UPDATE'>
					</td>
				</tr>
			</table>
		</form>
		<%
			}
		%>


		<br />
		<jsp:include page="/Footer.jsp"></jsp:include>

	</body>
</html>
